package com.emergency.examine;

import com.emergency.common.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Created by lijie on 2019/9/23.
 * 培训考核系统
 */
@SpringBootApplication
@EnableSwagger2
@ComponentScan(basePackages = {"com.emergency.**"})
@EntityScan(basePackages = {"com.emergency.***.domain"})
@EnableJpaAuditing
public class ExamineApplication {
    public static void main(String[] args) {
        SpringApplication.run(ExamineApplication.class);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }
}
